import type { RefObject } from 'react'
import type { UserItem } from './userType'

export type IAction = 'create' | 'edit'

export interface IModalProps<T = UserItem> {
  mRef: RefObject<{ open: (type: IAction, data?: T) => void } | undefined>
  update: () => void
}

export interface IModalDetail {
  mRef: RefObject<{ open: (orderId: string) => void } | undefined>
}
